package com.eas.biz.dao.grade.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.grade.dataobject.GradeSubjectInfoDO;
import com.eas.biz.dao.grade.interfaces.GradeSubjectInfoDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("gradeSubjectInfoDao")
public class GradeSubjectInfoDaoImpl extends GenericDaoImpl<GradeSubjectInfoDO> implements
        GradeSubjectInfoDao {

    public GradeSubjectInfoDO selectById(long id) {
        return selectById("GradeSubjectInfo.selectById", id);
    }

    public long insert(GradeSubjectInfoDO object) {
        return insert("GradeSubjectInfo.insert", object);
    }

    public int deleteById(long id) {
        return deleteById("GradeSubjectInfo.deleteById", id);
    }

    public int update(GradeSubjectInfoDO object) {
        return update("GradeSubjectInfo.update", object);
    }

    public List<GradeSubjectInfoDO> selectByQuery(BaseQuery query) {
        return selectByQuery("GradeSubjectInfo.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("GradeSubjectInfo.countByQuery", query);
    }

}
